package PTA.Pta_ch02;
import java.util.Scanner;
public class ex10 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a= sc.nextInt();
        int h;//时
        int m;//分
        int s;//秒
        h = a/3600;
        m = (a-h*3600)/60;
        s = (a-h*3600-m*60);
        System.out.println(h+":"+m+":"+s);

    }
}
